Skip to content

dbeaver/pro#10195 Refactor editor properties to always be strings - #4595

Merged
serge-rider merged 3 commits into
develfrom
dbeaver/pro#10195-editor-properties-refactor
Sep 10, 2026
Merged

dbeaver/pro#10195 Refactor editor properties to always be strings#4595
serge-rider merged 3 commits into
develfrom
dbeaver/pro#10195-editor-properties-refactor

Conversation

@ShadelessFox

Copy link
Copy Markdown
Member

No description provided.

@codacy-production

codacy-production Bot commented Aug 24, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The API narrowing is consistently applied across the shown service and controller layers and matches the GraphQL contract for rmSetResourceProperty(value: String).

Pull request overview

Updates the Resource Manager backend API to treat resource/editor properties as strings only, aligning the Java service/controller signatures with the existing GraphQL schema (value: String) and reducing ambiguity around property typing.

Changes:

  • Narrowed setResourceProperty parameter type from Object to String in the RM web service API and implementation.
  • Narrowed resource properties map typing from Map<String, Object> to Map<String, String> in the local RM controller flow.
  • Updated the copyright header year in DBWServiceRM.java.
File summaries
File Description
server/bundles/io.cloudbeaver.service.rm/src/io/cloudbeaver/service/rm/impl/WebServiceRM.java Changes setResourceProperty to accept a nullable String value and forwards it to the controller.
server/bundles/io.cloudbeaver.service.rm/src/io/cloudbeaver/service/rm/DBWServiceRM.java Updates the service contract for setResourceProperty to use @Nullable String and refreshes the header year.
server/bundles/io.cloudbeaver.model/src/io/cloudbeaver/model/rm/local/LocalResourceController.java Switches property value and properties map typing to String for RM property update and resource construction paths.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are a straightforward type-contract alignment across the RM service and controller layers with no additional issues found in the modified hunks.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@serge-rider
serge-rider merged commit 099e289 into devel Sep 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants